
package xjcConf;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;


/**
 * <p>Java class for replyOrderType.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * <p>
 * <pre>
 * &lt;simpleType name="replyOrderType">
 *   &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
 *     &lt;enumeration value="new_friend"/>
 *     &lt;enumeration value="direct_message"/>
 *   &lt;/restriction>
 * &lt;/simpleType>
 * </pre>
 * 
 */
@XmlType(name = "replyOrderType")
@XmlEnum
public enum ReplyOrderType {

    @XmlEnumValue("new_friend")
    NEW_FRIEND("new_friend"),
    @XmlEnumValue("direct_message")
    DIRECT_MESSAGE("direct_message");
    private final String value;

    ReplyOrderType(String v) {
        value = v;
    }

    public String value() {
        return value;
    }

    public static ReplyOrderType fromValue(String v) {
        for (ReplyOrderType c: ReplyOrderType.values()) {
            if (c.value.equals(v)) {
                return c;
            }
        }
        throw new IllegalArgumentException(v);
    }

}
